public static class ExtensionMethods{/// ///
将List转换成DataTable/// /// /// /// public static DataTable ToDataTable(this IList
data){PropertyDescriptorC...
分类:
其他好文 时间:
2014-05-01 13:03:47
阅读次数:
355
网上说得很多,很烦,操作了很多,总有错误,但解决方案很简单。步骤就下面几步就OK了安装gcc
、g++yum install gccyum install gcc-c++安装jdk,配置jdk的环境(网上很多,就不用多说了)下载软件:eclipse:
http://www.eclipse.org/d...
分类:
编程语言 时间:
2014-05-01 12:00:29
阅读次数:
368
C++中,申请字符串数组可用new实现:char ** list = new
char*[MAX_NUM];for (int i = 0; i,则通过 if (list[qid] != “”) 检测是否初始化。
分类:
编程语言 时间:
2014-05-01 11:46:12
阅读次数:
587
原题地址:http://oj.leetcode.com/problems/linked-list-cycle/题意:判断链表中是否存在环路。解题思路:快慢指针技巧,slow指针和fast指针开始同时指向头结点head,fast每次走两步,slow每次走一步。如果链表不存在环,那么fast或者fast...
分类:
编程语言 时间:
2014-05-01 10:33:38
阅读次数:
426
原题地址:http://oj.leetcode.com/problems/linked-list-cycle-ii/题意:如果链表中存在环路,找到环路的起点节点。解题思路:这道题有点意思。首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。具体技巧参见上一篇http://w...
分类:
编程语言 时间:
2014-05-01 08:19:31
阅读次数:
340
Java 115 Java Interview Questions and Answers –
The ULTIMATE List 3 Good Reasons to Avoid Arrays in Java Interfaces Other Top 10
Algorithms for Coding...
分类:
其他好文 时间:
2014-05-01 08:02:00
阅读次数:
318
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/题意:将链表中的节点两两交换。Given1->2->3->4,
you should return the list as2->1->4->3.解题思路:这题主要涉及到链表的操作,没什么...
分类:
编程语言 时间:
2014-05-01 06:44:21
阅读次数:
339
原题地址:http://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/题意:Given
a linked list, remove thenthnode from the end of list and return its he...
分类:
编程语言 时间:
2014-05-01 06:42:15
阅读次数:
332
分布式消息系统Jafka入门指南之二作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs三、Jafka的目录结构1、安装tree命令$ sudo yum install tree2、查看目录$ tree -L 1
.
?..?? bin
?..?? conf
?..?? data
?..?? lib
?..?? LICENSE
?..?? logs
?..?...
分类:
其他好文 时间:
2014-04-29 13:38:21
阅读次数:
448
Hadoop2.3.0+Hbase0.96.1.1+Hive0.14.0+Zookeeper3.4.6+Sqoop1.99.3安装配置流程
一、 配置Hadoop
源码包:hadoop-2.3.0-src.tar.gz
1. 安装以下软件:
yum -yinstall lzo-devel zlib-devel gcc autoconf automake li...
分类:
其他好文 时间:
2014-04-29 13:37:20
阅读次数:
541